package com.gxa.saas.portal.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.gxa.saas.core.entity.dto.luoj.ProductDTO;
import com.gxa.saas.core.entity.dto.luoj.SecKillDTO;
import com.gxa.saas.core.entity.vo.luoj.SecKillVO;
import com.gxa.saas.core.exception.BusinessException;
import org.springframework.validation.annotation.Validated;

import java.util.List;

public interface SeckillService extends IService<SecKillVO> {

    Boolean setSeckill(@Validated SecKillDTO secKillDTO);

    Boolean seckill(Integer id, Integer pid) throws BusinessException, JsonProcessingException;

    List<SecKillDTO> getSecKill();
}
